package eda.pract01;

public class Ejercicio01 {
	private int[] vector;

	public Ejercicio01() {
		vector = new int[3];
		vector[0] = 1;
		vector[1] = 2;
		vector[2] = 3;
	}

	public int getValor(int i) {
		return vector[i];
	}

	public void setValor(int valor, int i) {
		vector[i] = valor;
	}

	public int[] getVector() {
		return vector;
	}

	public void imprimeVector() {
		for (int i = 0; i < vector.length - 1; i++)
			System.out.print(vector[i] + ",");
		System.out.println(vector[vector.length - 1]);
	}

}